Make babl.h look clean.
authorMartin Nordholts <martinn@src.gnome.org>
Sat, 17 Jan 2009 14:35:56 +0000 (14:35 +0000)
committerMartin Nordholts <martinn@src.gnome.org>
Sat, 17 Jan 2009 14:35:56 +0000 (14:35 +0000)
* babl/babl-introspect.h: New installed header for babl_name() and
babl_introspect().

* babl/babl.h: Include it.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=376

ChangeLog
babl/Makefile.am
babl/babl-introspect.h [new file with mode: 0644]
babl/babl.h

index 4d3975949cbce476ae908f4b40ad844e03a77ba8..4bdd75448d00758838a88c045f833e64d90c7be2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2009-01-17  Martin Nordholts  <martinn@svn.gnome.org>
+
+       Make babl.h look clean.
+
+       * babl/babl-introspect.h: New installed header for babl_name() and
+       babl_introspect().
+
+       * babl/babl.h: Include it.
+
+       * babl/Makefile.am: Add it.
+
 2009-01-17  Martin Nordholts  <martinn@svn.gnome.org>
 
        * babl/babl-internal.h: Formating.
index b5b64f0828c69cb84fe7a3283406bf751b0660f1..40479dfc9564876cad343e3da27992751cea411b 100644 (file)
@@ -38,6 +38,7 @@ h_sources  =                          \
        babl-db.h                       \
        babl-ids.h                      \
        babl-internal.h                 \
+       babl-introspect.h               \
        babl-macros.h                   \
        babl-main.h                     \
        babl-memory.h                   \
@@ -57,6 +58,7 @@ library_include_HEADERS =             \
        babl-fish.h                     \
        babl-format.h                   \
        babl-image.h                    \
+       babl-introspect.h               \
        babl-macros.h                   \
        babl-main.h                     \
        babl-model.h                    \
diff --git a/babl/babl-introspect.h b/babl/babl-introspect.h
new file mode 100644 (file)
index 0000000..6b6d95d
--- /dev/null
@@ -0,0 +1,40 @@
+/* babl - dynamically extendable universal pixel conversion library.
+ * Copyright (C) 2005-2008, Øyvind Kolås and others.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _BABL_INTROSPECT_H
+#define _BABL_INTROSPECT_H
+
+#ifndef _BABL_H
+#error  this file is only to be included by babl.h
+#endif
+
+
+/**
+ * babl_name:
+ *
+ * Return a string decsribing a BablInstance, might work better than
+ * babl->instance.name when a good human readable name is desired.
+ *
+ * Returns: a name describing the instance.
+ */
+const char * babl_name       (const Babl *babl);
+
+void         babl_introspect (Babl       *babl); /* introspect a given BablObject     */
+
+
+#endif
index f67a856427b388f000f47cc9d6b2b36b7d94decf..7c54d60ec7b832d2eaf8ee8af52660871ab14e2e 100644 (file)
@@ -35,19 +35,7 @@ typedef struct _BablList BablList;
 #include "babl-macros.h"
 #include "babl-main.h"
 #include "babl-class.h"
-
-/**
- * babl_name:
- *
- * Return a string decsribing a BablInstance, might work better than
- * babl->instance.name when a good human readable name is desired.
- *
- * Returns: a name describing the instance.
- */
-const char * babl_name       (const Babl *babl);
-
-void         babl_introspect (Babl       *babl); /* introspect a given BablObject     */
-
+#include "babl-introspect.h"
 #include "babl-version.h"
 #include "babl-type.h"
 #include "babl-sampling.h"